package robocup.component.infotypes;

import robocup.component.SConf;

/**
 * This class holds a server-configuration, which is received after
 * initialization. This is already stored within the contained SConf-object.
 */
public class ServerParamInfo
    extends Info {

  /**
   * The server-configuration for the current game.
   */
  private SConf sConf;

  /**
   * Constructor needs no additional data, holds an object of the type SConf,
   * which stores all necessary parameters
   */
  public ServerParamInfo() {

    super(-1);
    this.infoType = Info.TYPE_SPARAM;
  }

  /**
   * @return Returns the server-configuration.
   */
  public SConf getSConf() {

    return this.sConf;
  }

  /**
   * Sets a new server-configuration.
   * 
   * @param conf
   */
  public void setSConf(final SConf conf) {

    this.sConf = conf;
  }

}
